package com.cqut.view.student;

import java.util.List;

import com.cqut.entity.student.Student;
import com.cqut.service.student.StudentService;
import com.cqut.service.student.imp.StudentServiceImp;


public class StudentViewService{

	private StudentService studentService= new StudentServiceImp();
	
	public void deleteStudentById(String studentId) {
		studentService.deleteStudentById(studentId);
	}

	public void saveStudent(Student student) {
		studentService.saveStudent(student);
	}

	public List<Student> searchAllStudents() {
		return studentService.searchAllStudents();
	}

	public List<Student> searchStudentById(String id) {
		return studentService.searchStudentById(id);
	}

	public void updateStudent(Student student) {
		studentService.updateStudent(student);
	}

}
